<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<link href="${ctx}/extend/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx}/extend/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/extend/js/dutil/DUtil.js" type="text/javascript"></script>
<script src="${ctx}/extend/css/css.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/common.js" type="text/javascript"></script>
<title>Change Password</title>
<script type="text/javascript">
   function changePwd(){
		var mdForm=document.getElementById("mdForm");
       	mdForm.action="${ctx}/admin/changePassword";
        mdForm.submit();
    }
</script>
</head>


<body class="maintable">
	<form name="merchandiseForm" method="POST" id="mdForm" action="saveMd"
		enctype="multipart/form-data">
		<div class="dclass_container">
			<div class="dclass_container_header">
				<div class="dclass_container_title">Change Password</div>
			</div>

			<div class="dclass_container_content">
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					bgcolor="#9FD6FF">

					<tr>
						<td width="20%" class="formtitle">User Name:<span
							class="fontred">*</span><br /></td>
						<td width="30%" class="formtd"><input type="hidden"
							name="userPO.userId" value="${User.userId}" />${User.userName}</td>
					</tr>
					<tr>
						<td width="20%" class="formtitle">Original Password:<span
							class="fontred">*</span></td>
						<td width="30%" class="formtd"><input type="password"
							name="userPO.password" value="" /></td>
					</tr>
					<tr>
						<td width="20%" class="formtitle">New Password:<span
							class="fontred">*</span></td>
						<td width="30%" class="formtd"><input type="password"
							name="userPO.newPassword" value="" /></td>
					</tr>
					<tr>
						<td width="20%" class="formtitle">Confirm Password:<span
							class="fontred">*</span></td>
						<td width="30%" class="formtd"><input type="password"
							name="comfrimPwd" value="" /></td>
					</tr>

				</table>
				<br style="line-height: 5px;" /> <br style="line-height: 5px;" />
				<div style="padding: 0.3em; text-align: center">
					<input type="button" class="btn1" value="Save"
						onclick="javascript:changePwd();" />&nbsp; <input type="button"
						class="btn1" value="Close" onclick="javascript:window.close();" />
				</div>
			</div>
		</div>
	</form>
</body>
</html>